home *** CD-ROM | disk | FTP | other *** search
/ Champak 86 / (Vol 86) My Disc.iso / Games / restaurante_1141.swf / scripts / frame_3 / DoAction.as
Text File  |  2009-04-16  |  2KB  |  59 lines

  1. if(copy_roof != undefined)
  2. {
  3.    copy_roof.removeMovieClip();
  4. }
  5. if(copy_howto != undefined)
  6. {
  7.    howto.removeMovieClip();
  8. }
  9. _root.score = 0;
  10. _root.score_txt = 0;
  11. time_start = 30;
  12. _root.score = 0;
  13. _root.current_level = 1;
  14. _global.instruction = 0;
  15. _root.ccc.duplicateMovieClip("zc",4000000);
  16. _root.score = 0;
  17. _root.score_txt = 0;
  18. var i = 1;
  19. while(i <= depth_value)
  20. {
  21.    _root["uc" + i].removeMovieClip();
  22.    _root["b" + i].removeMovieClip();
  23.    i++;
  24. }
  25. _root.c4.removeMovieClip();
  26. _root.levelup.removeMovieClip();
  27. if(_root.ax != undefined)
  28. {
  29.    _root.ax.removeMovieClip();
  30. }
  31. Key.removeListener(myListener);
  32. sound_base = new Sound();
  33. sound_base.attachSound("base.mp3");
  34. sound_click = new Sound();
  35. sound_click.attachSound("click.mp3");
  36. sound_drop_all = new Sound();
  37. sound_fail.attachSound("drop_all.mp3");
  38. sound_drop1 = new Sound();
  39. sound_fail.attachSound("drop1.mp3");
  40. sound_drop2 = new Sound();
  41. sound_fail.attachSound("drop2.mp3");
  42. sound_drop3 = new Sound();
  43. sound_fail.attachSound("drop3.mp3");
  44. sound_gameover = new Sound();
  45. sound_gameover.attachSound("gameover.mp3");
  46. sound_mouseover = new Sound();
  47. sound_mouseover.attachSound("mouseover.mp3");
  48. sound_o = new Sound();
  49. sound_o.attachSound("o.mp3");
  50. sound_o = new Sound();
  51. sound_o.attachSound("readygo.mp3");
  52. sound_o = new Sound();
  53. sound_o.attachSound("x.mp3");
  54. sound_levelUp = new Sound();
  55. sound_levelUp.attachSound("levelUp.mp3");
  56. sound_ending = new Sound();
  57. sound_ending.attachSound("ending.mp3");
  58. sound_ready.attachSound("levelup_ready.mp3");
  59.